﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ConfigManagement.aspx.cs"
    Inherits="CURE.SystemManagement.ConfigManagement" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>无标题页</title>
    <script type="text/javascript">
        function Check() {
            var Configid = document.getElementById("Configid").value;
            var reg = /^[0-9]*$/;
            var id = Configid.replace(/\s/gi, '');
            if (id != null && id != "") {
                if (!reg.test(id)) {
                    alertMsg.error("菜单编号应为数字");
                    return false;
                }
            }
        }
    </script>
</head>
<body>
    <form id="pagerForm" method="post" action="SystemManagement/ConfigManagement.aspx">
    <input type="hidden" name="numPerPage" value="<% =NumPerPage %>" />
    <input type="hidden" name="pageNum" value="1" />
    <input type="hidden" name="Configname" value="<%=Name %>" />
    </form>
    <div class="pageHeader">
        <form onsubmit="return navTabSearch(this);" action="" method="post">
        <div class="searchBar" style="margin-top: 13px; margin-bottom: 13px">
            <table class="searchContent">
                <tr>
                    <td>
                        开关名称：<input type="text" name="configname" maxlength="10" value="<%=Name %>" />
                    </td>
                    <td>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit" style="width: 50px; height: 30px">
                                    检索</button></div>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        </form>
    </div>
    <div class="pageContent"  style=" margin-top:-2px;">
        <div class="panelBar">
            <ul class="toolBar">
                <li><a class="add" width="520" height="250" rel="AddConfig" href="SystemManagement/ConfigInformation.aspx"
                    target="dialog"><span>开关添加</span></a></li>
            </ul>
        </div>
        <div>
            <table class="table" width="60%" layouth="136">
                <thead>
                    <tr>
                        <th style="text-align: center;">
                            参数编号
                        </th>
                        <th style="text-align: center;">
                            参数名称
                        </th>
                        <th style="text-align: center;">
                            参数值
                        </th>
                        <th style="text-align: center;">
                            是否启用
                        </th>
                        <th style="text-align: center;">
                            编辑
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <asp:Repeater ID="RepeaterConfig" runat="server">
                        <ItemTemplate>
                    <tr>
                        <td style="text-align: center;">
                            <%#Eval("SWITCHCODE")%>
                        </td>
                        <td style="text-align: center;">
                             <%#Eval("SWITCHNAME")%>
                        </td>
                        <td style="text-align: center;">
                             <%#Eval("SVALUE")%>
                        </td>
                        <td style="text-align: center;">
                             <%#Eval("SWITCHVALUE")%>
                        </td>
                        <td style="text-align: center;">
                            <a title="编辑" target="dialog" rel="EditConfig" width="520" height="250" href="SystemManagement/ConfigModify.aspx?action=edit&id=<%#Eval("SWITCHCODE") %>"
                                class="btnEdit">编辑</a>
                        </td>
                    </tr>
                    </ItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>
        </div>
        <div class="panelBar">
            <div class="pages">
                <span>显示</span>
                <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                    <option value="<% =NumPerPage %>">选择</option>
                    <option value="20">20</option>
                    <option value="50">50</option>
                    <option value="100">100</option>
                    <option value="200">200</option>
                </select>
                <span>条，共<%=TotalCount%>条</span>
            </div>
            <div class="pagination" targettype="navTab" totalcount="<%=TotalCount%>" numperpage="<% =NumPerPage %>" pagenumshown="<%=PageNumShown%>"
                currentpage="<%=PageNum%>">
            </div>
        </div>
    </div>
</body>
</html>
